PLC Bit Logic